package com.scu.qingshi.common.exception.interview;

import com.scu.qingshi.common.enums.ExceptionCodeEnum;
import com.scu.qingshi.common.exception.BaseException;

import java.text.ParseException;

/**
 * 面试领域Exception
 * @author qingshi
 */
public class InterviewException extends BaseException {

    public static InterviewException dateError(String msg){
        InterviewException exception = new InterviewException();
        exception.setCode(ExceptionCodeEnum.DOMAIN_ERROR);
        exception.setDescription(msg);
        return exception;
    }

    public static InterviewException publishError(String msg){
        InterviewException exception = new InterviewException();
        exception.setCode(ExceptionCodeEnum.DOMAIN_ERROR);
        exception.setDescription(msg);
        return exception;
    }

    public static InterviewException applyError(String msg){
        InterviewException exception = new InterviewException();
        exception.setCode(ExceptionCodeEnum.DOMAIN_ERROR);
        exception.setDescription(msg);
        return exception;
    }

    public static InterviewException auditError(String msg){
        InterviewException exception = new InterviewException();
        exception.setCode(ExceptionCodeEnum.SYSTEM_EXCEPTION);
        exception.setDescription(msg);
        return exception;
    }

    public static InterviewException deleteError(String msg){
        InterviewException exception = new InterviewException();
        exception.setCode(ExceptionCodeEnum.DOMAIN_ERROR);
        exception.setDescription(msg);
        return exception;
    }

    public static InterviewException judgeError(String msg){
        InterviewException exception = new InterviewException();
        exception.setCode(ExceptionCodeEnum.DOMAIN_ERROR);
        exception.setDescription(msg);
        return exception;
    }

    public static InterviewException modifyError(String msg) {
        InterviewException exception = new InterviewException();
        exception.setCode(ExceptionCodeEnum.DOMAIN_ERROR);
        exception.setDescription(msg);
        return exception;
    }
}
